﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Person.cs" company="Collaboris Ltd.">
//   Copyright (c) Collaboris Ltd. All rights Reserved.
// </copyright>
// <summary>
//   Defines the Person type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Collaboris.Saf.Tests.Support.Entities
{
    using System;

    using SharePoint.Wss.Entities;

    [Serializable]
    public class Person : WSSEntityBase
    {
        private string forename;
        private string surname;
        private int age;

        private Person friend;

        public Person()
        {
        }

        public Person(string forename, string surname, int age, Person friend)
        {
            this.forename = forename;
            this.surname = surname;
            this.age = age;
            this.friend = friend;
        }

        public string Forename
        {
            get
            {
                return forename;
            }

            set
            {
                forename = value;
            }
        }

        public string Surname
        {
            get
            {
                return surname;
            }

            set
            {
                surname = value;
            }
        }

        public int Age
        {
            get
            {
                return this.age;
            }
            set
            {
                this.age = value;
            }
        }

        public Person Friend
        {
            get
            {
                return this.friend;
            }
            set
            {
                this.friend = value;
            }
        }
    }
}
